<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\BannerItem
 *
 * @property int $id
 * @property int $img_id
 * @property string $key_word
 * @property int $type
 * @property int $banner_id
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BannerItem whereBannerId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BannerItem whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BannerItem whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BannerItem whereImgId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BannerItem whereKeyWord($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BannerItem whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BannerItem whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class BannerItem extends Model
{
    /**
     * @var array
     */
    protected $hidden = ['created_at', 'updated_at', 'id', 'banner_id', 'img_id', ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function images()
    {
        return $this->belongsTo('App\Models\Images', 'img_id', 'id');
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function banner()
    {
        return $this->belongsTo('App\Models\Banner');
    }




}
